package com.gp.entity;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 统一地区库
 * </p>
 *
 * @author 86187
 * @since 2022-03-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class BaseArea implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 地址ID
     */

    @JsonProperty("value")
    @TableId("base_areaid")
    private Integer baseAreaid;

    /**
     * 地区名字
     */
    @JsonProperty("label")
    private String name;

    /**
     * 上级路径ID
     */
    private Integer parentid;



    @TableField(exist = false)
    private List<BaseArea> children;

}
